<template>
  <el-select v-model="value1" multiple placeholder="请选择">
    <el-option
      v-for="item in addInCoRegForm"
      :key="item.id"
      :label="item.need"
      :value="item.id">
    </el-option>
  </el-select>

  <!-- <el-select
    v-model="value2"
    multiple
    collapse-tags
    style="margin-left: 20px;"
    placeholder="请选择">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
  </el-select> -->
</template>

<script>
  import {
    EnvGreList,
    addEnvGre,
    editEnvGre,
    deleteEnvGre,
    addEnvGreservice,
    addEnvGreservicelist,
    deleteEnvGreservice
  } from '@/api'
  export default {
    data() {
      return {
        addInCoRegForm:[],
        value1: [],
      }
    },
    created() {
      this.initList()
    },
    methods:{
        initList() {
            addEnvGreservicelist().then(res => {
            this.addInCoRegForm = res.data
            console.log(res)
            })
        },
    }
  }
</script>